package com.pactera.madp.cp.api.entity;


import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDateTime;

@Data
public class BaseEntity<T extends Model<?>> extends Model<T> {

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @TableLogic(value="0",delval="1")
    @ApiModelProperty(value = "删除标记,1:已删除,0:正常")
    private Integer delFlag;

    @ApiModelProperty(value = "用户所属租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "版本")
    private Integer version;

    @ApiModelProperty(value = "应用ID")
    private Integer appId;

    @ApiModelProperty(value = "应用空间")
    private Integer workspaceId;

}
